projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01cc752
)
(mmap_realloc): When shrinking, make sure number of
author
Ken Raeburn
<raeburn@raeburn.org>
Sun, 21 Jul 2002 13:58:53 +0000
(13:58 +0000)
committer
Ken Raeburn
<raeburn@raeburn.org>
Sun, 21 Jul 2002 13:58:53 +0000
(13:58 +0000)
pages is rounded towards zero.
src/buffer.c
patch
|
blob
|
history
diff --git
a/src/buffer.c
b/src/buffer.c
index 6656b8d1f4e4fe2c53a14411427e50abd71fe7bb..bf1b49e6ff481815815bfaf2ac768e031023e7a2 100644
(file)
--- a/
src/buffer.c
+++ b/
src/buffer.c
@@
-4670,7
+4670,7
@@
mmap_realloc (var, nbytes)
{
/* Shrinking by at least a page. Let's give some
memory back to the system. */
- mmap_enlarge (r, - (
room - nbytes) / mmap_page_size
);
+ mmap_enlarge (r, - (
(room - nbytes) / mmap_page_size)
);
result = *var;
r->nbytes_specified = nbytes;
}